package com.app.miwawa.api.eam.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 班级信息－时间表
 * <p>描述: 班级 (1-*) 时间</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月3日 上午10:49:52
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_EAM_CLASSES_TIME")
public class ClassesTime extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -8055223788797198965L;

	// 班级类型（亲子课、兴趣班）
	@Column(name = "type", length = 10, nullable = true)
	private String type;
	
	// 时间类型（from、over）
	@Column(name = "mode", length = 5, nullable = true)
	private String mode;
	
	// 星期(周一、周二、……)
	@Column(name = "week", length = 5, nullable = true)
	private String week;
	
	// 时间
	@Temporal(TemporalType.TIME)
	@JsonFormat(pattern="HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="HH:mm")
	@Column(name = "time", nullable = true)
	private Date time;

	// 班级ID
	@Column(name = "classesid", length = 50, nullable = true)
	private String classesId;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getClassesId() {
		return classesId;
	}

	public void setClassesId(String classesId) {
		this.classesId = classesId;
	}
}
